<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSpotMarketsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('trading_spot_markets', function (Blueprint $table) {
            $table->increments('id')->comment('交易区ID');
            $table->string('name')->comment('交易区名称');
            $table->unsignedTinyInteger('status')->nullable()->default(0)->comment('交易区状态');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('trading_spot_markets');
    }
}
